﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Permission.Entity
{
    /// <summary>
    /// 用户实体类
    /// </summary>
    public class User : IdentityUser<Guid>
    {
        /// <summary>
        /// 排序编号
        /// </summary>
        public virtual Int64 Num { get; set; }
        /// <summary>
        /// 用户编码（工号）
        /// </summary>
        public virtual String NumCode { get; set; }
        /// <summary>
        /// 密  码
        /// </summary>
        public virtual String Password { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public virtual String NickName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public virtual String RealName { get; set; }
        /// <summary>
        /// 兼岗列表
        /// </summary>
        public virtual List<Position> Positions { get; set; }
        /// <summary>
        /// 用户权限树
        /// </summary>
        public virtual String AuthrorizeTree { get; set; }
        /// <summary>
        /// 会话超时设置
        /// </summary>
        public virtual Int32 SessionTimeout { get; set; }
        /// <summary>
        /// 最后一次登录IP地址
        /// </summary>
        public virtual String LastIPAddress { get; set; }
        /// <summary>
        /// 启用标记
        /// </summary>
        public virtual Int32 IsUsed { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
    }
}
